package com.recharge.controller.jd;

import com.alibaba.fastjson.JSON;

import java.io.UnsupportedEncodingException;
import java.lang.reflect.Field;
import java.net.URLEncoder;
import java.util.Arrays;

/**
 * Created by CAOQI on 2017/2/12.
 */
public class TrafficFindFill extends JdProtocol {

    private String fillOrderNo;

    public String getFillOrderNo() {
        return fillOrderNo;
    }

    public void setFillOrderNo(String fillOrderNo) {
        this.fillOrderNo = fillOrderNo;
    }


    public String getSignString(){
        String signString = "fillOrderNo"+fillOrderNo
                +"timestamp"+getTimestamp()+"version"+getVersion();
        try {
            return URLEncoder.encode(signString.replace(" ", ""), "GBK");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
        }

        return null;
    }
}
